<template>
  <div class="hello">
    {{ msg }}
    <div>
      <input type="text" v-model="test" />
      {{ demo }}
    </div>
  </div>
</template>

<script>
export default {
  name: "HelloWorld",
  data() {
    return {
      test: "",
      demo: "",
      msg: "Welcome to Your Vue.js App"
    };
  },
  watch: {
    test(val, oldval) {
      return (this.demo = "watch data:" + val);
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
.hello {
  h1 {
    color: red;
  }
}
</style>
